<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<div class="day_report">
    <div class="top">
        <input placeholder="{{language.TIPS_INVENTORY_DATE}}" type="date" ng-model="date"/>
        <button class="sear" ng-click="search(date)">
            {{language.ACT_INQUIRE}}
        </button>		
        <textarea placeholder="{{language.TIPS_FINISHED_SUBMIT}}" ng-model = "summary"></textarea>
        <button class="fl_r" ng-click="submit(summary, date)">{{language.TIPS_SET_COMMIT_UPLOAD}}
        </button>
    </div>
    <div class="left">
        <p class="table_title">
            <span ng-click="switch_table('one')" ng-class="{true: 'curr', false: ''}[table01 == true]">{{language.TIPS_REPORT_SELL}}（{{language.TIPS_FINISHEN_UNFINISHED_DATA}}）</span><span ng-click="switch_table('two')" ng-class="{true: 'curr', false: ''}[table02 == true]">{{language.TIPS_RECEIPT_RETURN_GOODS}}（{{language.TIPS_FINISHEN_UNFINISHED_DATA}}）</span>
        </p>
        <div class="table_wrap">
            <table ng-show="table01">
                <tr>
                    <th>{{language.TIPS_REPORT_GOODS_CODE}}<!--商品表号--></th>
                    <th>{{language.TIPS_REPORT_GOODS_NAME}}<!--商品名称--></th>
                    <th>{{language.TIPS_FINISHEN_COLOR}}<!--颜色--></th>
                    <th>{{language.TIPS_FINISHEN_SIZE}}<!--尺寸--></th>
                    <th>{{language.TIPS_CASHIER_REFER_PRICE}}<!--推荐价格--></th>
                    <th>{{language.TIPS_CASHIER_DISCOUNT}}<!--折扣--></th>
                    <th>{{language.TIPS_CASHIER_PRICE}}<!--单价--></th>
                    <th>{{language.TIPS_CASHIER_NUM}}<!--数量--></th>
                    <th>{{language.TIPS_CASHIER_MONEY}}<!--金额--></th>
                </tr>
                <tr ng-repeat="p in sales">
                    <td>{{p.spdm}}</td>
                    <td>{{p.spmc}}</td>
                    <td>{{p.gg1_mc}}</td>
                    <td>{{p.gg2_mc}}</td>
                    <td>{{p.ckj|number:2}}</td>
                    <td>{{p.dj / p.ckj|number:2}}</td>
                    <td>{{p.dj|number:2}}</td>
                    <td>{{p.sl}}</td>
                    <td>{{p.je|number:2}}</td>
                </tr>
            </table>
            <table ng-show="table02">
                <tr>
                    <th>{{language.TIPS_REPORT_GOODS_CODE}}<!--商品表号--></th>
                    <th>{{language.TIPS_REPORT_GOODS_NAME}}<!--商品名称--></th>
                    <th>{{language.TIPS_FINISHEN_COLOR}}<!--颜色--></th>
                    <th>{{language.TIPS_FINISHEN_SIZE}}<!--尺寸--></th>
                    <th>{{language.TIPS_CASHIER_REFER_PRICE}}<!--推荐价格--></th>
                    <th>{{language.TIPS_CASHIER_DISCOUNT}}<!--折扣--></th>
                    <th>{{language.TIPS_CASHIER_PRICE}}<!--单价--></th>
                    <th>{{language.TIPS_CASHIER_NUM}}<!--数量--></th>
                    <th>{{language.TIPS_CASHIER_MONEY}}<!--金额--></th>
                </tr>
                <tr ng-repeat="p in return">
                    <td>{{p.spdm}}</td>
                    <td>{{p.spmc}}</td>
                    <td>{{p.gg1_mc}}</td>
                    <td>{{p.gg2_mc}}</td>
                    <td>{{p.ckj|number:2}}</td>
                    <td>{{p.zk|number:2}}</td>
                    <td>{{p.dj|number:2}}</td>
                    <td>{{p.sl}}</td>
                    <td>{{p.je}}</td>
                </tr>
            </table>
        </div>
    </div>
    <div class="right">
        <p class="table_title">
            <span>{{language.TIPS_FINISHEN_STATUS}}<!--营业状态--></span>
        </p>
        <div class="table_wrap">
            <table>
                <tr>
                    <th>{{language.TIPS_VIP_NUM}}<!--编号--></th><th>{{language.TIPS_FINISH_PROJECT}}<!--项目--></th><th>{{language.TIPS_FINISH_DESCRIBE}}<!--描述--></th>
                </tr>
                <tr>
                <tr>
                    <td>01</td><td>{{total.rjsl[1]}}</td><td>{{total.rjsl[0]}}</td>
                </tr>
                <tr>
                    <td>02</td><td>{{total.rjje[1]}}</td><td>{{total.rjje[0]}}</td>
                </tr>
                <tr>
                    <td>03</td><td>{{total.cjbs[1]}}</td><td>{{total.cjbs[0]}}</td>
                </tr>
                <tr>
                    <td>04</td><td>{{total.xssl[1]}}</td><td>{{total.xssl[0]}}</td>
                </tr>
                <tr>
                    <td>05</td><td>{{total.xsje[1]}}</td><td>{{total.xsje[0]}}</td>
                </tr>
                <tr>
                    <td>06</td><td>{{total.thsl[1]}}</td><td>{{total.thsl[0]}}</td>
                </tr>
                <tr>
                    <td>07</td><td>{{total.thje[1]}}</td><td>{{total.thje[0]}}</td>
                </tr>
                <tr>
                    <td>08</td><td>{{total.jxse[1]}}</td><td>{{total.jxse[0]}}</td>
                </tr>
                <tr>
                    <td>09</td><td>{{total.gkdj[1]}}</td><td>{{total.gkdj[0]}}</td>
                </tr>
                <tr>
                    <td>10</td><td>{{total.ldl[1]}}</td><td>{{total.ldl[0]}}</td>
                </tr>
                <tr>
                    <td>11</td><td>{{total.xzgk[1]}}</td><td>{{total.xzgk[0]}}</td>
                </tr>
                <tr>
                    <td>12</td><td>{{total.xzvp[1]}}</td><td>{{total.xzvp[0]}}</td>
                </tr>
                <tr>
                    <td>13</td><td>{{total.vpsl[1]}}</td><td>{{total.vpsl[0]}}</td>
                </tr>
                <tr>
                    <td>14</td><td>{{total.vpje[1]}}</td><td>{{total.vpje[0]}}</td>
                </tr>
                <tr>
                    <td>15</td><td>{{total.vpdj[1]}}</td><td>{{total.vpdj[0]}}</td>
                </tr>
                <tr>
                    <td>16</td><td>{{total.vpldl[1]}}</td><td>{{total.vpldl[0]}}</td>
                </tr>
                <tr>
                    <td>17</td><td>{{total.bcxssl[1]}}</td><td>{{total.bcxssl[0]}}</td>
                </tr>
                <tr>
                    <td>18</td><td>{{total.bcxsje[1]}}</td><td>{{total.bcxsje[0]}}</td>
                </tr>
                <tr>
                    <td>19</td><td>{{total.bcxianjin[1]}}</td><td>{{total.bcxianjin[0]}}</td>
                </tr>
                <tr>
                    <td>20</td><td>{{total.bcyhk[1]}}</td><td>{{total.bcyhk[0]}}</td>
                </tr>
                <tr>
                    <td>21</td><td>{{total.bclq[1]}}</td><td>{{total.bclq[0]}}</td>
                </tr>
                <tr>
                    <td>22</td><td>{{total.jsfs_id_1[1]}}</td><td>{{total.jsfs_id_1[0]}}</td>
                </tr>
            </table>
        </div>
    </div>
</div>
